<!-- Initialization of SmoothGallery-->
<script type="text/javascript">
	function startGallery() {
	var myGallery = new gallery($('myGallery'),
	{timed: true});}
	window.addEvent('domready',startGallery);
</script>
<div id="myGallery">
	<?php $my_query = new WP_Query('showposts='.get_option('yoshz_number').'&category_name='.get_option('yoshz_slide_category')); ?>
	<?php while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID; ?>
	<div class="imageElement">  
		<h3><?php the_title(); ?></h3>
		<?php the_excerpt(); ?> 
		<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" class="open"></a>
        <?php if (getImage() != ""){ ?>
        <img src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo getImage(); ?>&h=250&w=600" class="full" />
        <img src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo getImage(); ?>" class="thumbnail" />
        <?php } else { ?>
        <img src="<?php bloginfo('template_directory'); ?>/images/default.jpg" class="full" />
        <img src="<?php bloginfo('template_directory'); ?>/images/default.jpg" class="thumbnail" />
        <?php } ?>
	</div>
	<?php endwhile; ?>
</div>